package spring5.aopanno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: spring5_demos
 * @BelongsPackage: spring5.aopanno
 * @Author: LiYing
 * @CreateTime: 2021-01-06 15:12
 * @Description:
 */

@Component
@Aspect
public class PersonProxy {

    @Before(value = "execution(* spring5.aopanno.User.add(..))")
    public void personBefore(){
        System.out.println("Person Before.......");
    }



}
